<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>
<h1>
    <fmt:message key="app.user.profile"/>
</h1>

<div class="entry">
    <div class="entry-left">
        <img src="/static-images/pic-post.gif">
    </div>
    <div class="entry-right">
        <div class="entry-header">
            <c:out value="${command.username}"/>
        </div>
        <div class="entry-text">
            <table style="width: 100%; text-align: left;" border="0">
                <tr>
                    <td>
                        <fmt:message key="app.register.email"/>
                    </td>
                    <td>
                        <c:out value="${entry:mangleEmail(command.email)}" escapeXml="false"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="app.register.firstName"/>
                    </td>
                    <td>
                        <c:out value="${command.firstName}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="app.register.lastName"/>
                    </td>
                    <td>
                        <c:out value="${command.lastName}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="app.register.city"/>
                    </td>
                    <td>
                        <c:out value="${command.city}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="app.register.district"/>
                    </td>
                    <td>
                        <c:out value="${command.district}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="app.register.bicycle"/>
                    </td>
                    <td>
                        <c:out value="${command.bicycle}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <fmt:message key="app.register.style"/>
                    </td>
                    <td>
                        <c:out value="${command.style}"/>
                    </td>
                </tr>
            </table>
        </div>
    </div>

</div>

<authz:authorize ifAllGranted="ROLE_SUPERVISOR">
    <a href="<c:url value="/system/edituser.form/${command.id}"/>"><fmt:message key="app.user.profile.edit"/></a>
</authz:authorize>
<authz:authorize ifNotGranted="ROLE_SUPERVISOR">
    <a href="<c:url value="/editprofile.form"/>"><fmt:message key="app.user.profile.edit"/></a>
</authz:authorize>
